﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;


namespace SuperKnowledgeDatabase2000Client
{
    /// <summary>
    /// Interaktionslogik für "App.xaml"
    /// </summary>
    public partial class App : Application
    {
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            if (SuperKnowledgeDatabase2000Client.Properties.Settings.Default.EndPointRootAddress != "")
            {
                ConfigSettings.SaveEndpointAddress(SuperKnowledgeDatabase2000Client.Properties.Settings.Default.EndPointRootAddress);
                this.StartupUri = new System.Uri("RegisterUser.xaml", System.UriKind.Relative);
            }
            else
            {
                this.StartupUri = new System.Uri("RegisterReferenceAddress.xaml", System.UriKind.Relative);
            }
        }
    }
}
